package com.eastfair.imaster.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 *
 * </p>
 *
 * @author zjn
 * @since 2021-08-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SuggestDTO implements Serializable {

    /**
     * 校验标识 新增校验
     */
    public interface VerifyInsert {
    }

    /**
     * 校验标识 修改校验
     */
    public interface VerifyUpdate {
    }

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotNull(groups = {NewsDTO.VerifyUpdate.class})
    private Long id;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 反馈内容
     */
    @ApiModelProperty(value = "反馈内容")
    @NotBlank(groups = {VerifyInsert.class})
    private String content;

    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    @NotBlank(groups = {VerifyUpdate.class})
    private String replyContent;

    /**
     * 回复时间
     */
    @ApiModelProperty(value = "回复时间")
    private LocalDateTime replyTime;

    /**
     * 用户身份
     */
    @ApiModelProperty(value = "用户身份")
    private String subjectType;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;

    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;

}
